test.sh 431 B

123456789101112
  1. #!/bin/bash
  2. test_bin_path=../examples/simulator/out/
  3. mkdir -p out
  4. rm -rf out/*
  5. mkdir -p out/coverage
  6. cp $test_bin_path/*.gcno out/coverage
  7. python ./nr_shell_test.py testcases $test_bin_path/nr_shell_db > out/test.log
  8. mv $test_bin_path/*.gcda out/coverage
  9. mv *.log out/
  10. lcov --capture --directory ./out/coverage --output-file ./out/coverage/coverage.info
  11. genhtml ./out/coverage/coverage.info --output-directory ./out/coverage/html