@@ -506,13 +506,36 @@ test-mssql-migration: migrations.mssql.test migrations.individual.mssql.test gen
506506 GITEA_ROOT=" $( CURDIR) " GITEA_CONF=integrations/mssql.ini ./migrations.individual.mssql.test -test.failfast
507507
508508.PHONY : test-e2e
509- test-e2e : test-e2e-pgsql
509+ test-e2e : test-e2e-sqlite
510510
511511.PHONY : test-e2e\# %
512- test-e2e\#% : test-e2e-pgsql\# %
512+ test-e2e\#% : test-e2e-sqlite\# %
513+ # Kind of a hack to get makefile to accept passing arguement
513514 true
514515
515516# Can I share the database with integration tests? Is it cleaned up between tests?
517+ .PHONY : test-e2e-sqlite
518+ test-e2e-sqlite : GOFLAGS+=sqlite sqlite_unlock_notify
519+ test-e2e-sqlite : build generate-ini-sqlite
520+ npx playwright install $(PLAYWRIGHT_FLAGS )
521+ GITEA_ROOT=$(CURDIR ) GITEA_EXECUTABLE=$(EXECUTABLE ) ./tools/e2e/run_e2e.sh
522+
523+ .PHONY : test-e2e-sqlite\# %
524+ test-e2e-sqlite\#% : GOFLAGS+=sqlite sqlite_unlock_notify
525+ test-e2e-sqlite\#% : build generate-ini-sqlite
526+ npx playwright install $(PLAYWRIGHT_FLAGS )
527+ GITEA_ROOT=$(CURDIR ) GITEA_EXECUTABLE=$(EXECUTABLE ) E2E_TESTS=$* ./tools/e2e/run_e2e.sh
528+
529+ .PHONY : test-e2e-mysql8
530+ test-e2e-mysql8 : build generate-ini-mysql8
531+ npx playwright install $(PLAYWRIGHT_FLAGS )
532+ GITEA_ROOT=$(CURDIR ) GITEA_EXECUTABLE=$(EXECUTABLE ) ./tools/e2e/run_e2e.sh
533+
534+ .PHONY : test-e2e-mysql8\# %
535+ test-e2e-mysql8\#% : build generate-ini-mysql8
536+ npx playwright install $(PLAYWRIGHT_FLAGS )
537+ GITEA_ROOT=$(CURDIR ) GITEA_EXECUTABLE=$(EXECUTABLE ) E2E_TESTS=$* ./tools/e2e/run_e2e.sh
538+
516539.PHONY : test-e2e-pgsql
517540test-e2e-pgsql : build generate-ini-pgsql
518541 npx playwright install $(PLAYWRIGHT_FLAGS )
@@ -523,6 +546,16 @@ test-e2e-pgsql\#%: build generate-ini-pgsql
523546 npx playwright install $(PLAYWRIGHT_FLAGS )
524547 GITEA_ROOT=$(CURDIR ) GITEA_EXECUTABLE=$(EXECUTABLE ) E2E_TESTS=$* ./tools/e2e/run_e2e.sh
525548
549+ .PHONY : test-e2e-mssql
550+ test-e2e-mssql : build generate-ini-mssql
551+ npx playwright install $(PLAYWRIGHT_FLAGS )
552+ GITEA_ROOT=$(CURDIR ) GITEA_EXECUTABLE=$(EXECUTABLE ) ./tools/e2e/run_e2e.sh
553+
554+ .PHONY : test-e2e-mssql\# %
555+ test-e2e-mssql\#% : build generate-ini-mssql
556+ npx playwright install $(PLAYWRIGHT_FLAGS )
557+ GITEA_ROOT=$(CURDIR ) GITEA_EXECUTABLE=$(EXECUTABLE ) E2E_TESTS=$* ./tools/e2e/run_e2e.sh
558+
526559.PHONY : bench-sqlite
527560bench-sqlite : integrations.sqlite.test generate-ini-sqlite
528561 GITEA_ROOT=" $( CURDIR) " GITEA_CONF=integrations/sqlite.ini ./integrations.sqlite.test -test.cpuprofile=cpu.out -test.run DontRunTests -test.bench .
0 commit comments