Test.json 3.5 KB
Newer Older
Y
yangbo 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
{
    "description": "Configuration for userfilemgr Tests",
    "driver": {
        "type": "JSUnitTest",
        "test-timeout": "300000",
        "package": "ohos.acts.multimedia.userfilemgr",
        "shell-timeout": "600000"
    },
    "kits": [
        {
            "type": "ShellKit",
            "pre-push": [
            ],
            "run-command": [
                "rm -rf /storage/media/100/local/files/*",
                "rm -rf /data/app/el2/100/database/com.ohos.medialibrary.medialibrarydata/*",
Y
yangbo 已提交
17
                "mkdir -pv /storage/media/100/local/files/{Pictures,Videos,Audios}",
Y
yangbo 已提交
18
                "mkdir -p /storage/media/100/local/temp"
Y
yangbo 已提交
19 20 21 22 23 24 25
            ]
        },
        {
            "type": "PushKit",
            "pre-push": [
            ],
            "push": [
Y
yangbo 已提交
26 27
                "./resource/medialibrary/01.jpg ->/storage/media/100/local/temp",
                "./resource/medialibrary/01.mp3 ->/storage/media/100/local/temp",
Y
yangbo 已提交
28
                "./resource/medialibrary/01.mp4 ->/storage/media/100/local/temp"
Y
yangbo 已提交
29 30 31 32 33
            ]
        },
        {
            "type": "ShellKit",
            "run-command": [
34 35 36
                "mkdir -pv /storage/media/100/local/files/Pictures/{Static,On,Off,myAlbum,deleteCb,deletePro}",
                "mkdir -pv /storage/media/100/local/files/Videos/{Static,On,Off,myAlbum,deleteCb,deletePro}",
                "mkdir -pv /storage/media/100/local/files/Audios/{Static,On,Off,myAlbum,deleteCb,deletePro}",
Y
yangbo 已提交
37
                
Y
yangbo 已提交
38 39 40
                "for d in Static; do for i in $$(seq 4); do cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/$$d/0$$i.jpg; done;done;",
                "for d in Static; do for i in $$(seq 4); do cp /storage/media/100/local/temp/01.mp3 /storage/media/100/local/files/Audios/$$d/0$$i.mp3; done;done;",
                "for d in Static; do for i in $$(seq 4); do cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/$$d/0$$i.mp4; done;done;",
41 42 43
                "for d in deleteCb deletePro; do for i in $$(seq 2); do cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/$$d/0$$i.jpg; done;done;",
                "for d in deleteCb deletePro; do for i in $$(seq 2); do cp /storage/media/100/local/temp/01.mp3 /storage/media/100/local/files/Audios/$$d/0$$i.mp3; done;done;",
                "for d in deleteCb deletePro; do for i in $$(seq 2); do cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/$$d/0$$i.mp4; done;done;",
Y
yangbo 已提交
44 45 46
                "for d in On Off myAlbum; do for i in $$(seq 1); do cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/$$d/0$$i.jpg; done;done;",
                "for d in On Off myAlbum; do for i in $$(seq 1); do cp /storage/media/100/local/temp/01.mp3 /storage/media/100/local/files/Audios/$$d/0$$i.mp3; done;done;",
                "for d in On Off myAlbum; do for i in $$(seq 1); do cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/$$d/0$$i.mp4; done;done;",
Y
yangbo 已提交
47 48 49 50 51 52 53
                
                "chmod -R 777 /storage/media/100/local/files/*",
                "chmod -R 777 /data/service/el2/100/hmdfs/account/files/*",
                "hilog -Q pidoff",
                "hilog -p off",
                "hilog -b I",
                "hilog -b D -D 0xD002B70", 
Y
yangbo 已提交
54
                "scanner",
Y
yangbo 已提交
55 56 57 58 59
                "sleep 10"
            ]
        },
        {
            "test-file-name": [
L
lwx1121892 已提交
60
                "ActsUserFileMgrBaseJsTest.hap"
Y
yangbo 已提交
61 62 63 64 65 66
            ],
            "type": "AppInstallKit",
            "cleanup-apps": true
        }
    ]
}