diff --git a/conf/functional/riscv-ci-test.conf b/conf/functional/riscv-ci-test.conf new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/tests/riscv-ci-test/Readme.md b/tests/riscv-ci-test/Readme.md new file mode 100644 index 0000000000000000000000000000000000000000..fa725b588a730213fff690a24ccb16134d4bf52b --- /dev/null +++ b/tests/riscv-ci-test/Readme.md @@ -0,0 +1,30 @@ +# riscv-ci-test +## Description + +ANCK Kernel CI test for RISC-V architecture. + +## Homepage +[https://gitee.com/shuancue/riscv-ci-test.git](https://gitee.com/shuancue/riscv-ci-test.git) + +## Version + +## Category + +functional + +## Parameters + +- __value__ : about the value + +## Results + +``` +result: value +``` + +## Manual Run +``` +step n: xxxx + +``` + diff --git a/tests/riscv-ci-test/install.sh b/tests/riscv-ci-test/install.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba4e211296806d4bf7cfc36f1ed7c030ade7ed68 --- /dev/null +++ b/tests/riscv-ci-test/install.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# Avaliable environment: +# +# Download variable: +# WEB_URL= +DEP_PKG_LIST="qemu-system-riscv64 gcc-riscv64-linux-gnu binutils-riscv64-linux-gnu git libvirt virt-install edk2-ovmf" +GIT_URL="https://gitee.com/shuancue/riscv-ci-test.git" + + +# fetch() + +build() +{ + : +} + +install() +{ + cp -Trf $TONE_BM_BUILD_DIR $TONE_BM_RUN_DIR +} + \ No newline at end of file diff --git a/tests/riscv-ci-test/parse.awk b/tests/riscv-ci-test/parse.awk new file mode 100755 index 0000000000000000000000000000000000000000..784aa037824cbf8db62e611776726e24247a9bbd --- /dev/null +++ b/tests/riscv-ci-test/parse.awk @@ -0,0 +1,17 @@ +#!/usr/bin/awk -f + +/^====PASS:/ { + printf("%s: Pass\n",$2) +} + +/^====FAIL:/ { + printf("%s: Fail\n",$2) +} + +/^====SKIP:/ { + printf("%s: Skip\n",$2) +} + +/^====WARN:/ { + printf("%s: Warning\n",$2) +} diff --git a/tests/riscv-ci-test/run.sh b/tests/riscv-ci-test/run.sh new file mode 100644 index 0000000000000000000000000000000000000000..7f2dc3d5d7883458740ffbe12178c09329974457 --- /dev/null +++ b/tests/riscv-ci-test/run.sh @@ -0,0 +1,18 @@ +#!/bin/bash +# Avaliable environment: +# +# Download variable: +# WEB_URL= +# GIT_URL= + + +run() +{ + ./runtest.sh +} + +parse() +{ + $TONE_BM_SUITE_DIR/parse.awk +} + \ No newline at end of file