blob: eaccfdb411d700ff262bc325c397df182a91d573 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/bash
# script to test the lexer
echo "========================================"
echo " Cleaning the temporaries and outputs"
make clean
echo " Force building lexer"
make -B bin/c_parser
if [[ "$?" -ne 0 ]]; then
echo "Build failed.";
fi
echo "========================================="
echo " Testing lexer"
cat c_parser/test/test_parser.c | ./bin/c_parser | tee c_lexer/test/output.xml
|