File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -708,6 +708,26 @@ func getCommonExtensionTests() []Test {
708708
709709func getStandardOnlyTests () []Test {
710710 return []Test {
711+ {
712+ Name : "system_stats extension can be created" ,
713+ StandardOnly : true ,
714+ Cmd : "psql -U postgres -d testdb -t -A -c \" CREATE EXTENSION IF NOT EXISTS system_stats; SELECT 1;\" " ,
715+ ExpectedOutput : expectSuccess ,
716+ },
717+ {
718+ Name : "system_stats pg_sys_os_info works" ,
719+ StandardOnly : true ,
720+ Cmd : "psql -U postgres -d testdb -t -A -c \" SELECT 1 FROM pg_sys_os_info();\" " ,
721+ ExpectedOutput : func (exitCode int , output string ) error {
722+ if exitCode != 0 {
723+ return fmt .Errorf ("unexpected exit code: %d" , exitCode )
724+ }
725+ if strings .TrimSpace (output ) != "1" {
726+ return fmt .Errorf ("unexpected output: %s (expected 1)" , output )
727+ }
728+ return nil
729+ },
730+ },
711731 {
712732 Name : "pgvector extension can be created" ,
713733 StandardOnly : true ,
You can’t perform that action at this time.
0 commit comments