"src/vscode:/vscode.git/clone" did not exist on "dc23d605afe9aeda176cb67e7d287b37bdef184b"
unittest.sh 1.13 KB
Newer Older
1
#!/bin/bash
2
set -e
3
4
5
6
7
8
9
CWD=${PWD}

# -------------For python unittest-------------

## ------Run annotation test------
echo ""
echo "===========================Testing: nni_annotation==========================="
10
11
#cd ${CWD}/../tools/
#python3 -m unittest -v nni_annotation/test_annotation.py
12
13
14
15
16
17
18
19

## Export certain environment variables for unittest code to work
export NNI_TRIAL_JOB_ID=test_trial_job_id
export NNI_PLATFORM=unittest

## ------Run sdk test------
echo ""
echo "===========================Testing: nni_sdk==========================="
20
21
#cd ${CWD}/../src/sdk/pynni/
#python3 -m unittest discover -v tests
22

23
# -------------For typescript unittest-------------
24
#cd ${CWD}/../ts/nni_manager
25
26
echo ""
echo "===========================Testing: nni_manager==========================="
27
#npm run test
chicm-ms's avatar
chicm-ms committed
28

29
# -------------For NASUI unittest-------------
30
#cd ${CWD}/../ts/nasui
31
32
echo ""
echo "===========================Testing: nasui==========================="
33
#CI=true npm test
34

chicm-ms's avatar
chicm-ms committed
35
36
37
## ------Run nnictl unit test------
echo ""
echo "===========================Testing: nnictl==========================="
38
39
#cd ${CWD}/../tools/nni_cmd/
#python3 -m unittest discover -v tests