Skip to content

Commit

Permalink
rename checkbox provider from checkbox-tdx-classic to checkbox-tdx
Browse files Browse the repository at this point in the history
  • Loading branch information
hector-cao committed Oct 4, 2024
1 parent dd4b397 commit d0f0503
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
16 changes: 8 additions & 8 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,51 +72,51 @@ Go to the `tests` folder.

```
$ snapcraft
$ sudo snap install ./checkbox-tdx-classic_2.0_amd64.snap --dangerous --classic
$ sudo snap install ./checkbox-tdx_1.0.0_amd64.snap --dangerous --classic
```

- Run sanity tests to check the host setup:

```
$ checkbox-tdx-classic.test-runner-automated-host
$ checkbox-tdx.test-runner-automated-host
```

- Run guest tests:

```
$ checkbox-tdx-classic.test-runner-automated-guest
$ checkbox-tdx.test-runner-automated-guest
```

- Run boot tests:

```
$ checkbox-tdx-classic.test-runner-automated-boot
$ checkbox-tdx.test-runner-automated-boot
```

- Run perf tests:

```
$ checkbox-tdx-classic.test-runner-automated-perf
$ checkbox-tdx.test-runner-automated-perf
```

- Run quote tests:

```
$ checkbox-tdx-classic.test-runner-automated-quote
$ checkbox-tdx.test-runner-automated-quote
```

- Run stress tests:

```
$ checkbox-tdx-classic.test-runner-automated-stress
$ checkbox-tdx.test-runner-automated-stress
```

- Run all tests:

Please note that the performance tests can take a long time to run.

```
$ checkbox-tdx-classic.test-runner-automated
$ checkbox-tdx.test-runner-automated
```


Expand Down
2 changes: 1 addition & 1 deletion tests/checkbox/bin/checkbox-cli-wrapper
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

# Remove temporary folder and rebuild in setup-env-and-run
TMP_FOLDER=/tmp/snap/checkbox-tdx-classic
TMP_FOLDER=/tmp/snap/checkbox-tdx
rm -rf ${TMP_FOLDER}

# wrapper around the checkbox-cli
Expand Down
2 changes: 1 addition & 1 deletion tests/checkbox/bin/checkbox-cli-wrapper-image
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if ! test -f $TDXTEST_GUEST_IMG; then
fi

# Remove temporary folder and rebuild in setup-env-and-run
TMP_FOLDER=/tmp/snap/checkbox-tdx-classic
TMP_FOLDER=/tmp/snap/checkbox-tdx
rm -rf ${TMP_FOLDER}

# wrapper around the checkbox-cli
Expand Down
2 changes: 1 addition & 1 deletion tests/checkbox/bin/checkbox-cli-wrapper-local
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

# Remove temporary folder and rebuild in setup-env-and-run
TMP_FOLDER=/tmp/snap/checkbox-tdx-classic
TMP_FOLDER=/tmp/snap/checkbox-tdx
rm -rf ${TMP_FOLDER}

# wrapper around the checkbox-cli
Expand Down
4 changes: 2 additions & 2 deletions tests/snap/hooks/configure
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ STRESS_S3_WAIT_DELAY=60
To change those values use the configure launcher.
E.g.
$ checkbox-kivu-classic.configure OPEN_N_SSID=my-wifi
$ checkbox-tdx.configure OPEN_N_SSID=my-wifi
If you __really__ need to change those values using `snap set` command,
you need to change CAPS to lowercase and underscores to dashes (-).
E.g.
$ snap set checkbox-kivu-classic open-n-ssid=my-wifi
$ snap set checkbox-tdx open-n-ssid=my-wifi
"""

import os
Expand Down
4 changes: 2 additions & 2 deletions tests/snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: checkbox-tdx-classic
name: checkbox-tdx
summary: Checkbox tests for TDX
description: |
Collection of tests for Intel TDX (Trusted Domain eXtension)
Expand All @@ -9,7 +9,7 @@ grade: stable
base: core22

# Here are the available applications of the TDX checkbox provider snap
# To run : snap run checkbox-tdx-classic.<app>
# To run : snap run checkbox-tdx.<app>
#
# checkbox-cli:
# - checkbox client, can be used to talk to the checkbox daemon
Expand Down

0 comments on commit d0f0503

Please sign in to comment.