File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -95,12 +95,11 @@ jobs:
9595 set -e
9696 set -x
9797 uname -a
98- PIPX_BIN_DIR=/usr/local/bin pipx install nose2 --force
9998 git clone https://github.com/${{ github.repository }} /nvme-cli
10099 git config --global --add safe.directory /nvme-cli
101100 cd /nvme-cli
102101 git checkout ${{ github.sha }}
103- scripts/build.sh -b release -c gcc
102+ scripts/build.sh -b release -c gcc tests
104103 CONTROLLER=$(echo "${BDEV0}" | sed 's/n[0-9]*$//')
105104 cat > tests/config.json << EOJ
106105 {
@@ -112,27 +111,7 @@ jobs:
112111 EOJ
113112 cat tests/config.json
114113
115- nose2 --verbose --start-dir tests \
116- nvme_attach_detach_ns_test \
117- nvme_compare_test \
118- nvme_copy_test \
119- nvme_create_max_ns_test \
120- nvme_ctrl_reset_test \
121- nvme_dsm_test \
122- nvme_error_log_test \
123- nvme_flush_test \
124- nvme_format_test \
125- nvme_fw_log_test \
126- nvme_get_features_test \
127- nvme_get_lba_status_test \
128- nvme_id_ctrl_test \
129- nvme_id_ns_test \
130- nvme_lba_status_log_test \
131- nvme_read_write_test \
132- nvme_smart_log_test \
133- nvme_verify_test \
134- nvme_writeuncor_test \
135- nvme_writezeros_test
114+ meson tests -C .build-ci
136115 EOF
137116
138117 sudo chmod +x test.sh
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ usage() {
3737 echo " static build a static binary"
3838 echo " minimal_static build a static binary without fabrics support"
3939 echo " libnvme build only libnvme"
40+ echo " tests build for nightly build"
4041 echo " "
4142 echo " configs with muon:"
4243 echo " [default] minimal static build"
@@ -241,6 +242,14 @@ config_meson_minimal_static() {
241242 " ${BUILDDIR} "
242243}
243244
245+ config_meson_tests () {
246+ CC=" ${CC} " " ${MESON} " setup \
247+ --werror \
248+ --buildtype=" ${BUILDTYPE} " \
249+ -Dnvme-tests=true \
250+ " ${BUILDDIR} "
251+ }
252+
244253config_meson_libnvme () {
245254 CC=" ${CC} " " ${MESON} " setup \
246255 --werror \
You can’t perform that action at this time.
0 commit comments