Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main
pull_request:
branches:
- main
- [main, openasip-2.2]
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -111,6 +111,10 @@ jobs:
cd openasip
python3 ./tools/scripts/install_qemu.py $HOME/qemu-openasip

- name: oa-selftest
run: |
oa-selftest -v -f

- name: Unit tests
run: |
cd openasip/test
Expand Down
48 changes: 24 additions & 24 deletions openasip/scripts/oa-selftest
Original file line number Diff line number Diff line change
Expand Up @@ -365,20 +365,20 @@ class TestExplorer(TCETestCase):
takes a while!)
"""
# Generate .idf using the ImplementationSelector plugin
command = 'explore -e ImplementationSelector -a {0} -s1 test.dsdb'.format(self.get_minimalADF())
command = 'explore -v -e ImplementationSelector -a {0} -s1 test.dsdb'.format(self.get_minimalADF())
(timeout, stdout, stderr, code) = self.runWithTimeout(command, 120)
self.assertTrue('Best result configurations:' in stdout)
self.assertTrue('2' in stdout)
self.assertEqual(stderr.strip(), '')
self.assertTrue('Best result configurations:' in stderr)
self.assertTrue('2' in stderr)
self.assertEqual(stdout.strip(), '')
self.assertEqual(code, 0)

# Dump the .idf a file.
(timeout, stdout, stderr, code) = self.runWithTimeout(
'explore -w 2 test.dsdb', 120)
self.assertEqual(stderr.strip(), '')
'explore -v -w 2 test.dsdb', 120)
self.assertEqual(stdout.strip(), '')
self.assertEqual(code, 0)
self.assertTrue('Written ADF file of configuration 2' in stdout)
self.assertTrue('Written IDF file of configuration 2' in stdout)
self.assertTrue('Written ADF file of configuration 2' in stderr)
self.assertTrue('Written IDF file of configuration 2' in stderr)
self.assertTrue(os.path.exists('2.adf'))
self.assertTrue(os.path.exists('2.idf'))

Expand Down Expand Up @@ -483,21 +483,21 @@ class TestEstimator(TCETestCase):
"""

# Generate .idf using explorer
command = 'explore -e ImplementationSelector -a {0} -s 1 test.dsdb'.format(self.get_bigEndianMinimalADF())
command = 'explore -v -e ImplementationSelector -a {0} -s 1 test.dsdb'.format(self.get_bigEndianMinimalADF())
(timeout, stdout, stderr, code) = self.runWithTimeout(command, 120)
self.assertTrue('Best result configurations:' in stdout)
self.assertTrue('2' in stdout)
self.assertEqual(stderr.strip(), '')
self.assertTrue('Best result configurations:' in stderr)
self.assertTrue('2' in stderr)
self.assertEqual(stdout.strip(), '')
self.assertEqual(code, 0)

# Dump the .idf a file.
(timeout, stdout, stderr, code) = self.runWithTimeout(
'explore -w 2 test.dsdb', 60
'explore -v -w 2 test.dsdb', 60
)
self.assertEqual(stderr.strip(), '')
self.assertEqual(stdout.strip(), '')
self.assertEqual(code, 0)
self.assertTrue('Written ADF file of configuration 2' in stdout)
self.assertTrue('Written IDF file of configuration 2' in stdout)
self.assertTrue('Written ADF file of configuration 2' in stderr)
self.assertTrue('Written IDF file of configuration 2' in stderr)
self.assertTrue(os.path.exists('2.adf'))
self.assertTrue(os.path.exists('2.idf'))

Expand Down Expand Up @@ -547,21 +547,21 @@ class TestProGeAndPIG(TCETestCase):
"""

# Generate .idf using the ImplementationSelector plugin
command = 'explore -e ImplementationSelector -a {0} -s1 test.dsdb'.format(
command = 'explore -v -e ImplementationSelector -a {0} -s1 test.dsdb'.format(
self.get_minimalADF())
(timeout, stdout, stderr, code) = self.runWithTimeout(command, 120)
self.assertTrue('Best result configurations:' in stdout)
self.assertTrue('2' in stdout)
self.assertEqual(stderr.strip(), '')
self.assertTrue('Best result configurations:' in stderr)
self.assertTrue('2' in stderr)
self.assertEqual(stdout.strip(), '')
self.assertEqual(code, 0)

# Dump the .idf a file.
(timeout, stdout, stderr, code) = self.runWithTimeout(
'explore -w 2 test.dsdb', 120)
self.assertEqual(stderr.strip(), '')
'explore -v -w 2 test.dsdb', 120)
self.assertEqual(stdout.strip(), '')
self.assertEqual(code, 0)
self.assertTrue('Written ADF file of configuration 2' in stdout)
self.assertTrue('Written IDF file of configuration 2' in stdout)
self.assertTrue('Written ADF file of configuration 2' in stderr)
self.assertTrue('Written IDF file of configuration 2' in stderr)
self.assertTrue(os.path.exists('2.adf'))
self.assertTrue(os.path.exists('2.idf'))

Expand Down
2 changes: 1 addition & 1 deletion testsuite/systemtest_long/procgen/RFGen/tcetest_rfgen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function run_verilog_test() {

# If iverilog is found from PATH, compile and simulate
IVERILOG=$(which iverilog 2> /dev/null)
if [ "x${GHDL}" != "x" ]
if [ "x${IVERILOG}" != "x" ]
then
cd $PROGE_OUT || exit 1
./iverilog_compile.sh >& /dev/null || echo "iverilog compile failed."
Expand Down