run_c_binding_test.sh 310 B

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