Skip to content
Snippets Groups Projects
Commit afe65dc0 authored by mkirsz's avatar mkirsz
Browse files

Example testing tweaks...

parent 32d4365f
No related branches found
No related tags found
No related merge requests found
Pipeline #33987 failed
...@@ -111,11 +111,11 @@ build-example-1-static: ...@@ -111,11 +111,11 @@ build-example-1-static:
script: script:
- cd $RELEASE_DIR - cd $RELEASE_DIR
- make install - make install
- cd ${RELEASE_DIR}/examples/ex_1 - cd ../examples/ex_1
- g++ -O3 ex1.cpp -ltadah -llapack -fopenmp - g++ -O3 ex1.cpp -ltadah -llapack -fopenmp
artifacts: artifacts:
paths: paths:
- $RELEASE_DIR/examples/ex_1/a.out - examples/ex_1/a.out
build-example-2-static: build-example-2-static:
stage: build.examples stage: build.examples
...@@ -123,11 +123,11 @@ build-example-2-static: ...@@ -123,11 +123,11 @@ build-example-2-static:
script: script:
- cd $RELEASE_DIR - cd $RELEASE_DIR
- make install - make install
- cd ${RELEASE_DIR}/examples/ex_2 - cd ../examples/ex_2
- g++ -O3 ex2.cpp -ltadah -llapack -fopenmp - g++ -O3 ex2.cpp -ltadah -llapack -fopenmp
artifacts: artifacts:
paths: paths:
- $RELEASE_DIR/examples/ex_2/a.out - examples/ex_2/a.out
build-example-1-shared: build-example-1-shared:
stage: build.examples stage: build.examples
...@@ -135,11 +135,11 @@ build-example-1-shared: ...@@ -135,11 +135,11 @@ build-example-1-shared:
script: script:
- cd $RELEASE_DIR - cd $RELEASE_DIR
- make install - make install
- cd ${RELEASE_DIR}/examples/ex_1 - cd ../examples/ex_1
- g++ -O3 ex1.cpp -ltadah -llapack -fopenmp - g++ -O3 ex1.cpp -ltadah -llapack -fopenmp
artifacts: artifacts:
paths: paths:
- $RELEASE_DIR/examples/ex_1/a.out - examples/ex_1/a.out
build-example-2-shared: build-example-2-shared:
stage: build.examples stage: build.examples
...@@ -147,17 +147,17 @@ build-example-2-shared: ...@@ -147,17 +147,17 @@ build-example-2-shared:
script: script:
- cd $RELEASE_DIR - cd $RELEASE_DIR
- make install - make install
- cd ${RELEASE_DIR}/examples/ex_2 - cd ../examples/ex_2
- g++ -O3 ex2.cpp -ltadah -llapack -fopenmp - g++ -O3 ex2.cpp -ltadah -llapack -fopenmp
artifacts: artifacts:
paths: paths:
- $RELEASE_DIR/examples/ex_2/a.out - examples/ex_2/a.out
run-example-1-static: run-example-1-static:
stage: run.examples stage: run.examples
needs: [build-example-1-static] needs: [build-example-1-static]
script: script:
- cd ${RELEASE_DIR}/examples/ex_1 - cd examples/ex_1
- ./a.out - ./a.out
- diff energy.pred EXPECTED_OUTPUT/energy.pred - diff energy.pred EXPECTED_OUTPUT/energy.pred
- if $? -ne 0 ]; then exit 1; fi - if $? -ne 0 ]; then exit 1; fi
...@@ -171,7 +171,7 @@ run-example-2-static: ...@@ -171,7 +171,7 @@ run-example-2-static:
stage: run.examples stage: run.examples
needs: [build-example-2-static] needs: [build-example-2-static]
script: script:
- cd ${RELEASE_DIR}/examples/ex_2 - cd examples/ex_2
- ./a.out - ./a.out
- diff energy.pred EXPECTED_OUTPUT/energy.pred - diff energy.pred EXPECTED_OUTPUT/energy.pred
- if $? -ne 0 ]; then exit 1; fi - if $? -ne 0 ]; then exit 1; fi
...@@ -187,7 +187,7 @@ run-example-1-shared: ...@@ -187,7 +187,7 @@ run-example-1-shared:
script: script:
- cd $RELEASE_DIR - cd $RELEASE_DIR
- make install - make install
- cd ${RELEASE_DIR}/examples/ex_1 - cd ../examples/ex_1
- ./a.out - ./a.out
- diff energy.pred EXPECTED_OUTPUT/energy.pred - diff energy.pred EXPECTED_OUTPUT/energy.pred
- if $? -ne 0 ]; then exit 1; fi - if $? -ne 0 ]; then exit 1; fi
...@@ -203,7 +203,7 @@ run-example-2-shared: ...@@ -203,7 +203,7 @@ run-example-2-shared:
script: script:
- cd $RELEASE_DIR - cd $RELEASE_DIR
- make install - make install
- cd ${RELEASE_DIR}/examples/ex_2 - cd ../examples/ex_2
- ./a.out - ./a.out
- diff energy.pred EXPECTED_OUTPUT/energy.pred - diff energy.pred EXPECTED_OUTPUT/energy.pred
- if $? -ne 0 ]; then exit 1; fi - if $? -ne 0 ]; then exit 1; fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment