8989 echo "Expected branch 'dev', but found '$CURRENT_BRANCH'. Exiting with failure."
9090 exit 1
9191 fi
92+ mlc pull repo
9293
9394 - name : Test 3 - list repo - List the existing repositories
9495 run : |
@@ -106,7 +107,7 @@ jobs:
106107 - name : Test 5 - find cache - Cache not present
107108 run : |
108109 mlc find cache --tags=detect,os 2>&1 | tee test5.log
109- if ! grep -q "No cache entry found for the specified tags :" test5.log; then
110+ if ! grep -q "No cache entry found for the specified input :" test5.log; then
110111 exit 1
111112 fi
112113
@@ -133,4 +134,48 @@ jobs:
133134 - name : Test 10 - cp script - Copy mlc script
134135 run : |
135136 mlc cp script detect-os my-os-detect
137+
138+ - name : Test 11 - add repo - Add a new MLC repo
139+ run : |
140+ mlc add repo my-new-repo
141+ mlc add repo https://github.com/mlcommons/inference
142+ mlc add repo https://mygit.com/myrepo
143+
144+ - name : Test 12 - rm repo where we have a corrupt entry
145+ run : |
146+ rm -r $HOME/MLC/repos/mlcommons@mlperf-automations
147+ mlc rm repo mlcommons@mlperf-automations
148+ mlc pull repo mlcommons@mlperf-automations --branch=dev
136149
150+ - name : Test 13 - add script - Add a new MLC script
151+ run : |
152+ mlc add script my-script-1 --tags=my,new-tags-1
153+ mlc add script my-script-2 --tags=my,new-tags-2
154+ mlc add script my-script-3 --tags=my,new-tags3 --template_tags=detect,os
155+ mlc add script mlcommons@mlperf-automations:my-script-4 --tags=my,new-tags4 --template_tags=detect,os
156+
157+ - name : Test 14 - mv script - Move/rename an MLC script
158+ run : |
159+ mlc mv script my-script-1 moved-my-script-1
160+ mlc mv script my-script-2 mlcommons@mlperf-automations:moved-my-script-2
161+
162+ - name : Test 15 - show script
163+ run : |
164+ mlc show script --tags=run-mlperf,inference
165+ mlc show script 863735b7db8c44fc
166+ mlc show script detect-os,863735b7db8c44fc
167+ mlc show script detect-os
168+
169+ - name : Test 16 - find script
170+ run : |
171+ mlc find script --tags=run-mlperf,inference
172+ mlc find script 863735b7db8c44fc
173+ mlc find script detect-os,863735b7db8c44fc
174+ mlc find script detect-os
175+
176+ - name : Test 17 - rm script
177+ run : |
178+ mlc rm script get-ipol-src -f
179+ mlc rm script --tags=app,image,corner-detection -f
180+ mlc rm script 63080407db4d4ac4 -f
181+
0 commit comments