run_c_binding_test.sh 297 B

1234567891011121314
  1. cd c_bindings
  2. mkdir build
  3. cd build
  4. cmake ..
  5. cmake --build . --config Release
  6. ./test_c_bindings > binding_test_scratch
  7. echo "checking results (they should be identical)"
  8. diff -q -s binding_test_scratch ../test_answers.txt
  9. if [ $? -eq 1 ]
  10. then
  11. echo "ERROR: c binding test failed"
  12. exit 1
  13. fi