aws: Add regression test for AWS on Xen on x86_64 architecture.
Richard W.M. Jones
5 years ago
40 | 40 | TESTS = \ |
41 | 41 | tests/test-aws-baremetal-x86.sh \ |
42 | 42 | tests/test-aws-kvm-x86.sh \ |
43 | tests/test-aws-xen-x86.sh \ | |
43 | 44 | tests/test-baremetal.sh \ |
44 | 45 | tests/test-bhyve.sh \ |
45 | 46 | tests/test-docker.sh \ |
84 | 85 | tests/aws-kvm-x86/sbin/dmidecode \ |
85 | 86 | tests/aws-kvm-x86/sbin/uname \ |
86 | 87 | tests/aws-kvm-x86/sbin/virt-what-cpuid-helper \ |
88 | tests/aws-xen-x86/proc/cpuinfo \ | |
89 | tests/aws-xen-x86/proc/self/status \ | |
90 | tests/aws-xen-x86/sbin/dmidecode \ | |
91 | tests/aws-xen-x86/sbin/uname \ | |
92 | tests/aws-xen-x86/sbin/virt-what-cpuid-helper \ | |
87 | 93 | tests/baremetal/proc/cpuinfo \ |
88 | 94 | tests/baremetal/proc/self/status \ |
89 | 95 | tests/baremetal/sbin/dmidecode \ |
0 | processor : 0 | |
1 | vendor_id : GenuineIntel | |
2 | cpu family : 6 | |
3 | model : 63 | |
4 | model name : Intel(R) Xeon(R) CPU E5-2666 v3 @ 2.90GHz | |
5 | stepping : 2 | |
6 | microcode : 0x3c | |
7 | cpu MHz : 2900.281 | |
8 | cache size : 25600 KB | |
9 | physical id : 0 | |
10 | siblings : 2 | |
11 | core id : 0 | |
12 | cpu cores : 1 | |
13 | apicid : 0 | |
14 | initial apicid : 0 | |
15 | fpu : yes | |
16 | fpu_exception : yes | |
17 | cpuid level : 13 | |
18 | wp : yes | |
19 | flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm fsgsbase bmi1 avx2 smep bmi2 erms invpcid xsaveopt | |
20 | bogomips : 5800.06 | |
21 | clflush size : 64 | |
22 | cache_alignment : 64 | |
23 | address sizes : 46 bits physical, 48 bits virtual | |
24 | power management: | |
25 | ||
26 | processor : 1 | |
27 | vendor_id : GenuineIntel | |
28 | cpu family : 6 | |
29 | model : 63 | |
30 | model name : Intel(R) Xeon(R) CPU E5-2666 v3 @ 2.90GHz | |
31 | stepping : 2 | |
32 | microcode : 0x3c | |
33 | cpu MHz : 2900.281 | |
34 | cache size : 25600 KB | |
35 | physical id : 0 | |
36 | siblings : 2 | |
37 | core id : 0 | |
38 | cpu cores : 1 | |
39 | apicid : 1 | |
40 | initial apicid : 1 | |
41 | fpu : yes | |
42 | fpu_exception : yes | |
43 | cpuid level : 13 | |
44 | wp : yes | |
45 | flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm fsgsbase bmi1 avx2 smep bmi2 erms invpcid xsaveopt | |
46 | bogomips : 5800.06 | |
47 | clflush size : 64 | |
48 | cache_alignment : 64 | |
49 | address sizes : 46 bits physical, 48 bits virtual | |
50 | power management: | |
51 |
0 | Name: cat | |
1 | Umask: 0022 | |
2 | State: R (running) | |
3 | Tgid: 22828 | |
4 | Ngid: 0 | |
5 | Pid: 22828 | |
6 | PPid: 17431 | |
7 | TracerPid: 0 | |
8 | Uid: 0 0 0 0 | |
9 | Gid: 0 0 0 0 | |
10 | FDSize: 256 | |
11 | Groups: 0 | |
12 | VmPeak: 107972 kB | |
13 | VmSize: 107972 kB | |
14 | VmLck: 0 kB | |
15 | VmPin: 0 kB | |
16 | VmHWM: 360 kB | |
17 | VmRSS: 360 kB | |
18 | RssAnon: 76 kB | |
19 | RssFile: 284 kB | |
20 | RssShmem: 0 kB | |
21 | VmData: 180 kB | |
22 | VmStk: 132 kB | |
23 | VmExe: 44 kB | |
24 | VmLib: 1936 kB | |
25 | VmPTE: 36 kB | |
26 | VmSwap: 0 kB | |
27 | Threads: 1 | |
28 | SigQ: 0/14231 | |
29 | SigPnd: 0000000000000000 | |
30 | ShdPnd: 0000000000000000 | |
31 | SigBlk: 0000000000000000 | |
32 | SigIgn: 0000000000000000 | |
33 | SigCgt: 0000000000000000 | |
34 | CapInh: 0000000000000000 | |
35 | CapPrm: 0000001fffffffff | |
36 | CapEff: 0000001fffffffff | |
37 | CapBnd: 0000001fffffffff | |
38 | CapAmb: 0000000000000000 | |
39 | Seccomp: 0 | |
40 | Cpus_allowed: 7fff | |
41 | Cpus_allowed_list: 0-14 | |
42 | Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 | |
43 | Mems_allowed_list: 0 | |
44 | voluntary_ctxt_switches: 1 | |
45 | nonvoluntary_ctxt_switches: 1 |
0 | #!/bin/sh - | |
1 | cat <<'EOF' | |
2 | # dmidecode 3.0 | |
3 | Getting SMBIOS data from sysfs. | |
4 | SMBIOS 2.7 present. | |
5 | 12 structures occupying 398 bytes. | |
6 | Table at 0x000EB01F. | |
7 | ||
8 | Handle 0x0000, DMI type 0, 24 bytes | |
9 | BIOS Information | |
10 | Vendor: Xen | |
11 | Version: 4.2.amazon | |
12 | Release Date: 08/24/2006 | |
13 | Address: 0xE8000 | |
14 | Runtime Size: 96 kB | |
15 | ROM Size: 64 kB | |
16 | Characteristics: | |
17 | PCI is supported | |
18 | EDD is supported | |
19 | Targeted content distribution is supported | |
20 | BIOS Revision: 4.2 | |
21 | ||
22 | Handle 0x0100, DMI type 1, 27 bytes | |
23 | System Information | |
24 | Manufacturer: Xen | |
25 | Product Name: HVM domU | |
26 | Version: 4.2.amazon | |
27 | Serial Number: ec2f5c70-6dfc-83a7-f5ec-ef7b97aea4c9 | |
28 | UUID: EC2F5C70-6DFC-83A7-F5EC-EF7B97AEA4C9 | |
29 | Wake-up Type: Power Switch | |
30 | SKU Number: Not Specified | |
31 | Family: Not Specified | |
32 | ||
33 | Handle 0x0300, DMI type 3, 13 bytes | |
34 | Chassis Information | |
35 | Manufacturer: Xen | |
36 | Type: Other | |
37 | Lock: Not Present | |
38 | Version: Not Specified | |
39 | Serial Number: Not Specified | |
40 | Asset Tag: Not Specified | |
41 | Boot-up State: Safe | |
42 | Power Supply State: Safe | |
43 | Thermal State: Safe | |
44 | Security Status: Unknown | |
45 | ||
46 | Handle 0x0401, DMI type 4, 26 bytes | |
47 | Processor Information | |
48 | Socket Designation: CPU 1 | |
49 | Type: Central Processor | |
50 | Family: Other | |
51 | Manufacturer: Intel | |
52 | ID: F2 06 03 00 FF FB 89 17 | |
53 | Version: Not Specified | |
54 | Voltage: Unknown | |
55 | External Clock: Unknown | |
56 | Max Speed: 2900 MHz | |
57 | Current Speed: 2900 MHz | |
58 | Status: Populated, Enabled | |
59 | Upgrade: Other | |
60 | ||
61 | Handle 0x0402, DMI type 4, 26 bytes | |
62 | Processor Information | |
63 | Socket Designation: CPU 2 | |
64 | Type: Central Processor | |
65 | Family: Other | |
66 | Manufacturer: Intel | |
67 | ID: F2 06 03 00 FF FB 89 17 | |
68 | Version: Not Specified | |
69 | Voltage: Unknown | |
70 | External Clock: Unknown | |
71 | Max Speed: 2900 MHz | |
72 | Current Speed: 2900 MHz | |
73 | Status: Populated, Enabled | |
74 | Upgrade: Other | |
75 | ||
76 | Handle 0x0B00, DMI type 11, 5 bytes | |
77 | OEM Strings | |
78 | String 1: Xen | |
79 | ||
80 | Handle 0x1000, DMI type 16, 19 bytes | |
81 | Physical Memory Array | |
82 | Location: Other | |
83 | Use: System Memory | |
84 | Error Correction Type: Multi-bit ECC | |
85 | Maximum Capacity: 3840 MB | |
86 | Error Information Handle: Not Provided | |
87 | Number Of Devices: 1 | |
88 | ||
89 | Handle 0x1100, DMI type 17, 34 bytes | |
90 | Memory Device | |
91 | Array Handle: 0x1000 | |
92 | Error Information Handle: 0x0000 | |
93 | Total Width: 64 bits | |
94 | Data Width: 64 bits | |
95 | Size: 3840 MB | |
96 | Form Factor: DIMM | |
97 | Set: None | |
98 | Locator: DIMM 0 | |
99 | Bank Locator: Not Specified | |
100 | Type: RAM | |
101 | Type Detail: None | |
102 | Speed: Unknown | |
103 | Manufacturer: Not Specified | |
104 | Serial Number: Not Specified | |
105 | Asset Tag: Not Specified | |
106 | Part Number: Not Specified | |
107 | Rank: Unknown | |
108 | Configured Clock Speed: Unknown | |
109 | ||
110 | Handle 0x1300, DMI type 19, 31 bytes | |
111 | Memory Array Mapped Address | |
112 | Starting Address: 0x00000000000 | |
113 | Ending Address: 0x000EFFFFFFF | |
114 | Range Size: 3840 MB | |
115 | Physical Array Handle: 0x1000 | |
116 | Partition Width: 1 | |
117 | ||
118 | Handle 0x1400, DMI type 20, 35 bytes | |
119 | Memory Device Mapped Address | |
120 | Starting Address: 0x00000000000 | |
121 | Ending Address: 0x000EFFFFFFF | |
122 | Range Size: 3840 MB | |
123 | Physical Device Handle: 0x1100 | |
124 | Memory Array Mapped Address Handle: 0x1300 | |
125 | Partition Row Position: 1 | |
126 | ||
127 | Handle 0x2000, DMI type 32, 11 bytes | |
128 | System Boot Information | |
129 | Status: No errors detected | |
130 | ||
131 | Handle 0x7F00, DMI type 127, 4 bytes | |
132 | End Of Table | |
133 | ||
134 | EOF |
0 | # Test for AWS. | |
1 | # Copyright (C) 2018 Red Hat Inc. | |
2 | # | |
3 | # This program is free software; you can redistribute it and/or modify | |
4 | # it under the terms of the GNU General Public License as published by | |
5 | # the Free Software Foundation; either version 2 of the License, or | |
6 | # (at your option) any later version. | |
7 | # | |
8 | # This program is distributed in the hope that it will be useful, | |
9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 | # GNU General Public License for more details. | |
12 | # | |
13 | # You should have received a copy of the GNU General Public License | |
14 | # along with this program; if not, write to the Free Software | |
15 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
16 | ||
17 | root=tests/aws-xen-x86 | |
18 | ||
19 | output="$(./virt-what --test-root=$root 2>&1)" | |
20 | expected="xen | |
21 | xen-hvm | |
22 | aws" | |
23 | ||
24 | if [ "$output" != "$expected" ]; then | |
25 | echo "$0: test failed because output did not match expected" | |
26 | echo "Expected output was:" | |
27 | echo "----------------------------------------" | |
28 | echo "$expected" | |
29 | echo "----------------------------------------" | |
30 | echo "But the actual output of the program was:" | |
31 | echo "----------------------------------------" | |
32 | echo "$output" | |
33 | echo "----------------------------------------" | |
34 | exit 1 | |
35 | fi |